/* 暗黑主题样式 */
.app {
  text-align: center;
  min-height: 100vh;
  background-color: #141414; /* 暗黑主背景 */
}

.app-header {
  background-color: #1f1f1f; /* 暗色Header */
  padding: 2rem;
  color: #ffffff;
  margin-bottom: 0;
  border-bottom: 1px solid #303030;
}

.app-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.app-header p {
  font-size: 1.2rem;
  color: #ffffff;
  opacity: 0.95;
}

.game-container {
  padding: 24px;
  background-color: #141414; /* 暗色背景 */
}

/* 使用 Ant Design 标准样式 */

.story-text {
  /* 移除自定义样式，让内容使用默认样式 */
  text-align: left;
}

/* 暗黑主题文字和控件样式 */
.story-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  color: #ffffff; /* 白色文字 */
}

.game-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 暗黑主题全局覆盖 */
.ant-layout {
  background-color: #141414 !important;
}

.ant-layout-header {
  background-color: #1f1f1f !important;
  border-bottom: 1px solid #303030 !important;
}

.ant-layout-content {
  background-color: #141414 !important;
}

/* 暗黑主题Card */
.ant-card {
  background-color: #1f1f1f !important;
  border: 1px solid #303030 !important;
}

.ant-card-head {
  background-color: #1f1f1f !important;
  border-bottom: 1px solid #303030 !important;
}

.ant-card-head-title {
  color: #ffffff !important;
}

.ant-card-body {
  color: #ffffff !important;
}

/* 暗黑主题Typography */
.ant-typography {
  color: #ffffff !important;
}

.ant-typography h1,
.ant-typography h2,
.ant-typography h3,
.ant-typography h4,
.ant-typography h5,
.ant-typography h6 {
  color: #ffffff !important;
}

/* 暗黑主题Drawer */
.ant-drawer-content-wrapper {
  background-color: #1f1f1f !important;
}

.ant-drawer-content {
  background-color: #1f1f1f !important;
}

.ant-drawer-header {
  background-color: #1f1f1f !important;
  border-bottom: 1px solid #303030 !important;
}

.ant-drawer-title {
  color: #ffffff !important;
}

.ant-drawer-body {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
}

/* 暗黑主题Modal */
.ant-modal-content {
  background-color: #1f1f1f !important;
  border: 1px solid #303030 !important;
}

.ant-modal-header {
  background-color: #1f1f1f !important;
  border-bottom: 1px solid #303030 !important;
}

.ant-modal-title {
  color: #ffffff !important;
}

.ant-modal-body {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
}

.ant-modal-footer {
  background-color: #1f1f1f !important;
  border-top: 1px solid #303030 !important;
}

.ant-modal-close-x {
  color: #ffffff !important;
}

/* 模态框遮罩层 */
.ant-modal-mask {
  background-color: rgba(0, 0, 0, 0.45) !important;
}

/* List组件在Modal中的样式 */
.ant-modal .ant-list {
  background-color: transparent !important;
}

.ant-modal .ant-list-item {
  border-bottom: 1px solid #303030 !important;
  color: #ffffff !important;
}

.ant-modal .ant-list-item-meta-title {
  color: #ffffff !important;
}

.ant-modal .ant-list-item-meta-description {
  color: #bfbfbf !important;
}

@media (max-width: 768px) {
  .app-header h1 {
    font-size: 2rem;
  }
  
  .game-area {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .story-text {
    min-height: 150px;
    padding: 1rem;
  }
}
